﻿using AutoMapper;
using SmartApplication.Api.Applient.Command.Feed;
using SmartApplication.Api.Applient.Command.Kill;
using SmartApplication.Api.Applient.Command.Process;
using SmartApplication.Api.Applient.Command.Source;
using SmartApplication.Api.Dto;
using SmartApplication.Domain.Entity;
using System.Collections.Generic;

namespace SmartApplication.Api
{
    public class MyMapper:Profile
    {
        public MyMapper()
        {
            CreateMap<SourceModel,SourceDto>();
            CreateMap<AddSourceCommand, SourceModel>();
            CreateMap<UpdateSourceCommand, SourceModel>();
            CreateMap<CompaniesModel, CompaniesDto>();
            CreateMap<AddFeedCommand, FeedModel>();
            CreateMap<AddKillCommand, KillModel>();
            CreateMap<AddProcessCommand, ProcessingModel>();
            CreateMap<UpdateProcessCommand, ProcessingModel>();
            CreateMap<HealthDto,HealthModel>().ReverseMap();
            CreateMap<AddHealthCommand, HealthModel>();
            CreateMap< CompaniesModel,  List < CompaniesDto >> ();
        }
    }
}
